//
//  WKQRTool.h
//  WK_QR
//
//  Created by TOPTEAM on 2017/4/19.
//  Copyright © 2017年 TOPTEAM. All rights reserved.
//

#import <UIKit/UIKit.h>
#define KKSW  self.view.bounds.size.width
#define KKSH  self.view.bounds.size.height

typedef NS_ENUM(NSInteger, kQRCodeSizeType) {
    kQR_Size_Small=1,
    kQR_Size_Normal,
    kQR_Size_Big
};

typedef NS_ENUM(NSInteger, kQRCodeDrawType) {
    kQR_Draw_None=1,
    kQR_Draw_Square, // 正方形
    kQR_Draw_Circle, // 圆
    kQR_Draw_Icon // 图标
};

typedef NS_ENUM(NSInteger, kQRCodeGradientType) {
    kQR_Gradient_None=1, // 纯色
    kQR_Gradient_Horizontal, // 水平渐变
    kQR_Gradient_Diagonal, // 对角线渐变
};

@interface WKQRTool : NSObject


+(UIImage *)QR_ForString:(NSString *)str withSizeType:(NSInteger)sizeType drawType:(NSInteger)drawType gradientType:(NSInteger)gradientType gradientColors:(NSArray<UIColor *> *)colors iconsPath:(NSString *)iconPath;
@end









































